<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Parser Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>
    <a name="//apple_ref/swift/Class/Parser" class="dashAnchor"></a>
    <a title="Parser Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">TwitterText 0.0.1 Docs</a> (16% documented)</p>
        <p class="header-right"><a href="https://github.com/nysander/twitter-text"><img src="../img/gh.png"/>View on GitHub</a></p>
        <p class="header-right"><a href="dash-feed://https%3A%2F%2Fnysander.github.io%2Ftwitter-text%2Fdocsets%2FTwitterText.xml"><img src="../img/dash.png"/>Install in Dash</a></p>
        <p class="header-right">
          <form role="search" action="../search.json">
            <input type="text" placeholder="Search documentation" data-typeahead>
          </form>
        </p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">TwitterText Reference</a>
        <img id="carat" src="../img/carat.png" />
        Parser Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/Configuration.html">Configuration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Entity.html">Entity</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ParseResults.html">ParseResults</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Parser.html">Parser</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/TwitterText.html">TwitterText</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WeightedRange.html">WeightedRange</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/EntityType.html">EntityType</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>Parser</h1>
              <div class="declaration">
                <div class="language">
                  
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Parser</span></code></pre>

                </div>
              </div>
            <p>Undocumented</p>

              <div class="slightly-smaller">
                <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/Parser.swift#L8-L335">Show on GitHub</a>
              </div>
          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText6ParserC07defaultC0ACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/defaultParser" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText6ParserC07defaultC0ACvpZ">defaultParser</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">var</span> <span class="nv">defaultParser</span><span class="p">:</span> <span class="kt">Parser</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/Parser.swift#L">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText6ParserC010setDefaultC04withyAA13ConfigurationC_tFZ"></a>
                    <a name="//apple_ref/swift/Method/setDefaultParser(with:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText6ParserC010setDefaultC04withyAA13ConfigurationC_tFZ">setDefaultParser(with:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">setDefaultParser</span><span class="p">(</span><span class="n">with</span> <span class="nv">configuration</span><span class="p">:</span> <span class="kt"><a href="../Classes/Configuration.html">Configuration</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/Parser.swift#L11-L13">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText6ParserC4withAcA13ConfigurationC_tcfc"></a>
                    <a name="//apple_ref/swift/Method/init(with:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText6ParserC4withAcA13ConfigurationC_tcfc">init(with:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="n">with</span> <span class="nv">configuration</span><span class="p">:</span> <span class="kt"><a href="../Classes/Configuration.html">Configuration</a></span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/Parser.swift#L21-L23">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText6ParserC10parseTweet4textAA12ParseResultsCSS_tF"></a>
                    <a name="//apple_ref/swift/Method/parseTweet(text:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText6ParserC10parseTweet4textAA12ParseResultsCSS_tF">parseTweet(text:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">parseTweet</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/ParseResults.html">ParseResults</a></span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/Parser.swift#L25-L190">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText6ParserC22maxWeightedTweetLengthSiyF"></a>
                    <a name="//apple_ref/swift/Method/maxWeightedTweetLength()" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText6ParserC22maxWeightedTweetLengthSiyF">maxWeightedTweetLength()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">maxWeightedTweetLength</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Int</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/Parser.swift#L192-L194">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="https://pawelmadej.com" target="_blank" rel="external">Paweł Madej</a>. All rights reserved. (Last updated: 2020-09-22)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
